﻿namespace Game.FlowField.Input
{
    public class RebuildMapOperation : OperationBase<RebuildMapOperation>
    {
        public int Width { get; private set; }
        public int Height { get; private set; }

        public static RebuildMapOperation Get(int width, int height)
        {
            if (!ObjectPool<RebuildMapOperation>.TryGet(out var result))
            {
                result = new RebuildMapOperation() ;
            }

            result.Width = width;
            result.Height = height;

            return result;
        }
    }
}